/*样式表文件out.css*/
*{
    margin:0;
    padding:0;
}

body {
    color: rgb(42, 61, 79);
    font-family: 楷体;
    background-color: rgb(224,248,212);
	display: block;
}

.header {
    width: 100%;
    height:200px;
}

#hi1 {
    width:100%;
    height:320px;
}
.dh >ul{
    height: 50px;
    width: 100%;
    margin-bottom: 20px;
    padding: 0px;
    margin-top: 100px;
    display: inline-flex;
    background-color: forestgreen;
}
.dh >ul> li{
    height: 30px;
    width: 100%;
    display:inline-block;
    list-style: none;
    font-size: 0.9em;
}
.dh ul li a{
    text-align: center;
    color: #EEEEEE;
    font-size: larger;
    font-family: 楷体;
    width: 100%;
    margin: 0px;
    text-decoration: none;
    display: block;
    background-color: forestgreen ;
    line-height: 50px;
    border-bottom: 0px solid rgb(168,164,172);
}
.dh ul li a:hover{
    color: #FFD700;
    background-color: chartreuse;
    border-bottom:3px solid darkolivegreen;
}
.dh ul li ul{
    list-style: none;
    display: flex;
    position: absolute;

}

.footer {
    margin-top: 10px;
    clear: both;
    width: 100%;
    height: 70px;
    background-color: chartreuse;
    color: rgb(99,34,34);
    font: italic 14px/20px 黑体;
     text-align: center;
    position: absolute;
    top: 220%;

}

.footer p{
     margin-top: 50px;
}

.container {
    display: flex;
    margin: 20px;
}

.left-panel {
    flex: 1;
    margin-right: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.right-panel {
    width: 300px; /* 固定右侧容器宽度 */
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #4CAF50;
}

.latest-content {
    align-items: center;
	height: 270px;
	width: 686px;
}

.latest-content img {
    width: 100px;
    height: auto;
    margin-right: 10px;
}
#questions-display{
	height:400px ;
}

.questions-grid {
    display: flex;
	height: 370px;
    justify-content: space-between;
}

.latest-questions, .hot-questions {
    width: 48%; /* 确保两个问答板块的宽度相等 */
}

.expert-carousel {
    position: relative;
}

.expert-slide {
    display: none;
}

.expert-slide.active {
    display: block; /* 仅显示当前活动的专家 */
}

.carousel-container {
	position: relative;
	height: 200px; /* 设置图片轮播容器的高度 */
	overflow: hidden;
}

.carousel-image {
	width: 100%;
	display: none; /* 隐藏所有图片 */
}

.carousel-image.active {
	display: block; /* 仅显示当前活动的图片 */
}

button {
	margin: 10px 0;
	padding: 10px;
	border: none;
	background-color: #4CAF50;
	color: white;
	border-radius: 5px;
	cursor: pointer;
}

button:hover{
	background-color: #45a049;
}
footer {
	text-align: center;
	padding: 15px;
	background-color: #4CAF50;
	color: white;
}
.latest-content ul {
	display: flex;
	height: 270px;
	list-style: none;
}
.latest-content ul li{
	height: 270px;
	width: 343px;
}
.latest-content ul li ul{
	display: block;
}
.latest-content ul li ul li{
	height: 30px;
	width: 343px;
}
.latest-content ul li ul li:first-child{
	margin-right: 10px;
	margin-left: 0px;
}
.latest-content ul li img{
	height: 240px;
	width: 320px;
}
#latest-info{
	height: 300px;
	width: 686px;
}
.latest-questions ul{
	height: 340px;
	list-style: none;
}
.latest-questions ul li{
	height: 30px;
}
.hot-questions ul{
	height: 340px;
	list-style: none;
}
.hot-questions ul li{
	height: 30px;
}
.expert-carousel{
	height: 200px;
}
.expert-carousel ul{
	display: flex;
}
.expert-carousel ul li{
	display: block;
}
.expert-carousel ul li img{
	width: 150px;
}
#expert-showcase h2{
	margin-bottom: 10px;
	font-family: SimHei;
	color:#4CAF50
}
#consultation-section{
	height: 100px;
}
#consultation-section button{
	width:130px
}
#query-section{
	height: 200px;
}
#query-section ul{
	height: 170px;
	list-style: none;
	margin-top: 10px;
}

#query-section ul li{
	height: 40px;
	}
a:hover{
	color: lightgreen;
	cursor: pointer;
}
h2{
	font-family: SimHei;
	margin-bottom: 10px;
}
h3{
	font-family: SimHei;
	margin-bottom: 10px;
	color:#4CAF50
}
.carousel {
    position: relative;
    width: 300px; /* 容器宽度 */
    height: 600px; /* 容器高度 */
    overflow: hidden;
    margin: 50px auto; /* Center the carousel */
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.carousel-images {
    position: absolute;
    width: 100%;
    animation: slide 16s infinite; /* 动画时间 */
}

.carousel-images img {
    width: 100%;
    height: auto; /* 自适应高度 */
}

@keyframes slide {
    0% { transform: translateY(0); }
    20% { transform: translateY(0); }
    25% { transform: translateY(-100%); }
    45% { transform: translateY(-100%); }
    50% { transform: translateY(-200%); }
    70% { transform: translateY(-200%); }
    75% { transform: translateY(-300%); }
    95% { transform: translateY(-300%); }
}